package Iterator;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Iterator;
import java.util.SortedMap;
import java.util.TreeMap;

@Data
@AllArgsConstructor
public class Province implements Iterable<City>{
    private String name;
    SortedMap<Object,City> citys = new TreeMap<>();

    @Override
    public Iterator<City> iterator() {
        return citys.values().iterator();
    }
}
